import { PLATFORM_Map } from "@/constant/index";
import alarmmanagement from "@/assets/images/leftminsvg/alarmmanagement.svg?component";
export default {
  path: "/alarm-management",
  redirect: "/alarm-management/alarm-log",
  meta: {
    title: "告警管理",
    showLink: true,
    rank: 9,
    icon: alarmmanagement,
    platform: [PLATFORM_Map.operate],
    roles:["business.alarm"]
  },
  children: [
    {
      name: "alarm-log",
      path: "/alarm-management/alarm-log",
      component: () =>
        import("@/views/operate/alarm-management/alarm-log/index.vue"),
      meta: {
        title: "告警记录",
				showParent: true,
        roles:['business.alarm.alarm.list']
      }
    },
    {
      name: "notification-record",
      path: "/alarm-management/notification-record",
      component: () =>
        import(
          "@/views/operate/alarm-management/notification-record/index.vue"
        ),
      meta: {
        title: "通知记录",
				showParent: true,
        roles:['business.alarm.alarmNotice']
      }
    },
    {
      name: "alarm-strategy",
      path: "/alarm-management/alarm-strategy",
      component: () =>
        import("@/views/operate/alarm-management/alarm-strategy/index.vue"),
      meta: {
        title: "通知策略",
				showParent: true,
        roles:['business.alarm.strategy.list']
      }
    },
    {
      name: "alarm-rules",
      path: "/alarm-management/alarm-rules",
      component: () =>
        import("@/views/operate/alarm-management/alarm-rules/index.vue"),
      meta: {
        title: "告警规则",
				showParent: true,
        roles:['business.alarm.rules.list']
      }
    }
  ]
} satisfies RouteConfigsTable;
